package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.SpuInfoVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author DoGH
 * @email sunlightcs@gmail.com
 * @date 2023-10-25 10:37:41
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    /**
     * 分页查询
     *
     * @param params 参数
     * @return {@link PageUtils }
     * @author DuGuanghan
     * @since 2024-02-27 16:45:17
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存SPU信息
     *
     * @param spuInfoVo SPU视图
     * @author DuGuanghan
     * @since 2024-02-27 16:44:34
     */
    void saveSpuInfoVo(SpuInfoVo spuInfoVo);

    /**
     * 通过查询条件分页查询
     *
     * @param params 参数
     * @return {@link PageUtils }
     * @author DuGuanghan
     * @since 2024-03-01 14:58:07
     */
    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 上架商品
     *
     * @param spuId SPU ID
     * @author DuGuanghan
     * @since 2024-04-03 14:58:48
     */
    void up(Long spuId);
}

